import 'package:dio/dio.dart';
import 'package:flutterdemo/models/entity/banner_entity.dart';
import 'package:retrofit/retrofit.dart';

@RestApi(baseUrl: "https://www.wanandroid.com/")
abstract class WanClient {
  // factory WanClient(Dio dio, {String baseUrl}) = _WanClient;

  @GET("banner/json")
  Future<List<BannerEntity>> getBanners();
}
